package model;

/**
 * 
 * This is the superclass that is extended by the Exercise and Workout classes. 
 * @author Roman Pusec, Dennis Goldfinger, Marko Bilic
 *
 */
public class Activity {
	protected String name;
	
	/**
	 * Constructor which sets the name. 
	 * @param name
	 */
	public Activity(String name)
	{
		this.name = name;
	}
	
	/**
	 * Returns the name of the food. 
	 * @return
	 */
	public String getName()
	{
		return this.name;
	}
	
	/**
	 * Overridden toString() method which returns the name of the Activity. 
	 */
	public String toString()
	{
		return this.name;
	}
}
